package com.dushan.boot.service;

/**
 * @Author：朗朗乾坤
 * @Package：com.dushan.boot.service
 * @Project：DuShanHui
 * @name：Singleton
 * @Date：2024/3/11 22:00
 * @Filename：Singleton
 */
public class SingletonLazy {
    private static SingletonLazy singletonLazy;

    private SingletonLazy(){

    }

    public synchronized static SingletonLazy getSingletonLazy(){
        if(singletonLazy == null){
            singletonLazy = new SingletonLazy();
        }
        return singletonLazy;
    }
}
